package gamagora.game.map.parts
{
	import gamagora.box2d.OSPhysicData;
	import gamagora.box2d.OSPhysicSprite;
	import gamagora.game.OSBoxBridge;
	import gamagora.game.OSCircleBridge;
	import gamagora.game.OSWall;
	import gamagora.game.map.OSMap;
	import gamagora.game.utils.OSImages;
	
	import org.flixel.FlxSprite;
	
	public class OSMap6 extends OSMap
	{
		public function OSMap6()
		{
			super(5);
		}
		
		protected override function create():void
		{	
			//In Game
			_objects.push(new OSWall(_xDecal, 280, 157, HEIGHT - 280));// Premier bloc
			_objects.push(new OSWall(_xDecal+148, 252, 124, 10, -27));// Echelle
			_objects.push(new OSWall(_xDecal+262, 225, 88, HEIGHT - 225));// Troisième bloc
			_objects.push(new OSWall(_xDecal+262, HEIGHT-10, WIDTH-262, HEIGHT - 10));// Sol
			
			// Premier poteau
			var tmp:FlxSprite = new FlxSprite(_xDecal+342, 22);
			tmp.makeGraphic(8, 210, 0xff000000);
			_backgrounds.add(tmp);
			
			// Second poteau
			tmp = new FlxSprite(_xDecal+WIDTH-18, 40);
			tmp.makeGraphic(8, HEIGHT-22, 0xff000000);
			_backgrounds.add(tmp);
			_objects.push(new OSWall(_xDecal+WIDTH-18, 80, 8, HEIGHT - 250));
			
			// Pont
			//_objects.push(new OSBoxBridge(_xDecal+334, 60, 35.1, 3, 17));
			_objects.push(new OSBoxBridge(_xDecal+326, 60, 43, 3, 14));
			
			// Tremplin
			_objects.push(new OSWall(_xDecal+340, 270, 100, 5, 20, OSPhysicData.BOUNCE, false));
			_objects.push(new OSWall(_xDecal+340, 290, 53, 8, -30, OSPhysicData.WALL));
			
			tmp = new FlxSprite(_xDecal, 0, OSImages.N6tissu);
			_foregrounds.add(tmp);
			
		}
	}
}

